package come.bjpowernode.javase.singleton;

public class MyRunnable implements Runnable{
    @Override
    public void run() {
//        SingletonEntity singletonEntity = SingletonEntity.getSingletonEntity();
//        SingletonEntitySynchronized singletonEntity = SingletonEntitySynchronized.getInstance();
//        SingletonEntityDCL singletonEntity = SingletonEntityDCL.getInstance();
        SingletonEntityRight singletonEntity = SingletonEntityRight.getInstance();
        System.out.println(Thread.currentThread().getName()+":"+singletonEntity);
    }
}
